import { path } from "../../config/path";
import request from './request';

/** 家庭病床列表 GET /manage/sickbed/get_sickbed_list */
export async function get_sickbed_list(body: any, options?: any) {
    return request(path + '/manage/sickbed/get_sickbed_list', {
        method: 'GET',
        headers: {
            Authorization: localStorage.loginToken,
        },
        params: body,
        ...(options || {}),
    });
}
/** 新建/编辑病床 POST /manage/sickbed/add_edit_sickbed */
export async function add_edit_sickbed(body: any, options?: any) {
    return request(path + '/manage/sickbed/add_edit_sickbed', {
        method: 'POST',
        headers: {
            Authorization: localStorage.loginToken,
        },
        data: body,
        ...(options || {}),
    });
}
/** 家庭病床详情（编辑） GET /manage/sickbed/get_sickbed_editinfo */
export async function get_sickbed_editinfo(body: any, options?: any) {
    return request(path + '/manage/sickbed/get_sickbed_editinfo', {
        method: 'GET',
        headers: {
            Authorization: localStorage.loginToken,
        },
        params: body,
        ...(options || {}),
    });
}
/** 撤床 POST /manage/sickbed/quash_sickbed */
export async function quash_sickbed(body: any, options?: any) {
    return request(path + '/manage/sickbed/quash_sickbed', {
        method: 'POST',
        headers: {
            Authorization: localStorage.loginToken,
        },
        data: body,
        ...(options || {}),
    });
}
/** 病床详情 GET /manage/sickbed/get_sickbed_info */
export async function get_sickbed_info(body: any, options?: any) {
    return request(path + '/manage/sickbed/get_sickbed_info', {
        method: 'GET',
        headers: {
            Authorization: localStorage.loginToken,
        },
        params: body,
        ...(options || {}),
    });
}
/** 删除家庭病床 POST /manage/sickbed/delete_sickbed */
export async function delete_sickbed(body: any, options?: any) {
    return request(path + '/manage/sickbed/delete_sickbed', {
        method: 'POST',
        headers: {
            Authorization: localStorage.loginToken,
        },
        data: body,
        ...(options || {}),
    });
}
/** 患者建床记录 GET /manage/sickbed/get_patient_sickbed_log */
export async function get_patient_sickbed_log(body: any, options?: any) {
    return request(path + '/manage/sickbed/get_patient_sickbed_log', {
        method: 'GET',
        headers: {
            Authorization: localStorage.loginToken,
        },
        params: body,
        ...(options || {}),
    });
}
/** 患者家庭病床通话记录 GET /manage/sickbed/get_patient_call_log */
export async function get_patient_call_log(body: any, options?: any) {
    return request(path + '/manage/sickbed/get_patient_call_log', {
        method: 'GET',
        headers: {
            Authorization: localStorage.loginToken,
        },
        params: body,
        ...(options || {}),
    });
}
/** 家庭病床申请列表 GET /manage/sickbed/get_application_list */
export async function application_list(body: any, options?: any) {
    return request(path + '/manage/sickbed/get_application_list', {
        method: 'GET',
        headers: {
            Authorization: localStorage.loginToken,
        },
        params: body,
        ...(options || {}),
    });
}
/** 申请审批 POST /manage/sickbed/sickbed_approval */
export async function sickbed_approval(body: any, options?: any) {
    return request(path + '/manage/sickbed/sickbed_approval', {
        method: 'POST',
        headers: {
            Authorization: localStorage.loginToken,
        },
        data: body,
        ...(options || {}),
    });
}
/** 申请详情 GET /manage/sickbed/get_application_info */
export async function application_info(body: any, options?: any) {
    return request(path + '/manage/sickbed/get_application_info', {
        method: 'GET',
        headers: {
            Authorization: localStorage.loginToken,
        },
        params: body,
        ...(options || {}),
    });
}
/** 呼叫提醒列表 GET /manage/sickbed/get_warning_list */
export async function warning_list(body: any, options?: any) {
    return request(path + '/manage/sickbed/get_warning_list', {
        method: 'GET',
        headers: {
            Authorization: localStorage.loginToken,
        },
        params: body,
        ...(options || {}),
    });
}
/** 处理提醒 POST /manage/sickbed/warning_processed */
export async function warning_processed(body: any, options?: any) {
    return request(path + '/manage/sickbed/warning_processed', {
        method: 'POST',
        headers: {
            Authorization: localStorage.loginToken,
        },
        data: body,
        ...(options || {}),
    });
}
/** 家庭病床可选患者列表（下拉框） GET /manage/sickbed/get_sickbed_patient_select */
export async function get_sickbed_patient_select(body?: any, options?: any) {
    return request(path + '/manage/sickbed/get_sickbed_patient_select', {
        method: 'GET',
        headers: {
            Authorization: localStorage.loginToken,
        },
        params: body,
        ...(options || {}),
    });
}
/** 患者家庭病床预警消息列表 GET /manage/sickbed/get_patient_message */
export async function get_patient_message(body?: any, options?: any) {
    return request(path + '/manage/sickbed/get_patient_message', {
        method: 'GET',
        headers: {
            Authorization: localStorage.loginToken,
        },
        params: body,
        ...(options || {}),
    });
}
/** 获取通话频道token GET /manage/sickbed/get_call_Token */
export async function get_call_Token(body?: any, options?: any) {
    return request(path + '/manage/sickbed/get_call_Token', {
        method: 'GET',
        headers: {
            Authorization: localStorage.loginToken,
        },
        params: body,
        ...(options || {}),
    });
}
/** 长链接呼叫 POST /manage/sickbed/socket_call */
export async function socket_call(body: any, options?: any) {
    return request(path + '/manage/sickbed/socket_call', {
        method: 'POST',
        headers: {
            Authorization: localStorage.loginToken,
        },
        data: body,
        ...(options || {}),
    });
}
/** 修改呼叫记录 POST /manage/sickbed/edit_callLog */
export async function edit_callLog(body: any, options?: any) {
    return request(path + '/manage/sickbed/edit_callLog', {
        method: 'POST',
        headers: {
            Authorization: localStorage.loginToken,
        },
        data: body,
        ...(options || {}),
    });
}
/** 添加呼叫备注信息 POST /manage/sickbed/commit_remark */
export async function commit_remark(body: any, options?: any) {
    return request(path + '/manage/sickbed/commit_remark', {
        method: 'POST',
        headers: {
            Authorization: localStorage.loginToken,
        },
        data: body,
        ...(options || {}),
    });
}